home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / nrd33.zip / NRD.DOC < prev    next >
Text File  |  1991-05-19  |  20KB  |  486 lines

  1.                 N  R  D
  2.  
  3.    A Control Program / Database for use with Japan Radio NRD525/535 Radios
  4.  
  5.                by Tom Whiteside
  6.  
  7.  
  8. NRD is a control program / database for NRD525 and NRD535 receivers and
  9. requires an IBM or compatible computer.  This program is distributed as
  10. "Freeware" as a token repayment for the valuable assistance received over the
  11. years from other DXers in the form of articles and log reports.  Included also
  12. is source code (for Turbo Pascal) so you can adapt this to your own style (or
  13. convert existing computer database files over to NRD).
  14.  
  15. Note:  The enclosed database files are intended as examples, not definitive
  16.        Short Wave databases by any means!  This is intended as a tool to
  17.        enhance your own logging productivity and enjoyment.  This program
  18.        can import data from Tom Sundstrom's English language database for
  19.        subscribers to this (described later) and his IS a definitive database.
  20.  
  21. Note:  There are many commands and features in NRD that take some practice.
  22.        I recommend printing this and trying the various commands in the
  23.        documentation with the program.
  24.  
  25. PHILOSOPHY:
  26.  
  27. I got tired of using paper for logging many moons ago.    With paper logs, its
  28. tough to go back and find where radio xyz is, etc.  Much continues to be
  29. written on ways to organize paper records -- no thanks!!!  The first step was
  30. logging on paper, then entering the data in a Spreadsheet.  Now, things could
  31. be found but this is tedious!  This program eliminates the middle person!  The
  32. next step was achieving the right balance between controlling the radio
  33. manually and from the keyboard.  Basically, you can do either with this
  34. program.  This program does not use the radio's memory channels (essentially
  35. the database can be thought of as memory channels only with comments).    Sloth
  36. is the watch-word throughout.  For example, to log a station, hit the "L" key
  37. and the program will automatically grab the frequency, date, time (and the rest
  38. of the receiver state) leaving you to enter only the ID and Location.  While
  39. you don't have to use the program to search for stations, keys like "+" and "-"
  40. can be used to tune in 5khz increments.  The program will follow along pointing
  41. at records for this frequency.    If you've been tuning manually, hit the "*" key
  42. to find the entry for this frequency.  Other keys bump the bandwidth or mode.
  43.  
  44. SETUP:
  45.  
  46. The program defaults to COM1:  for the serial port.  If you need to change this
  47. delete the CONFIG.DAT file and rerun the program.  This causes NRD to request
  48. the desired COM port and other information described below.  If you specify "0"
  49. for the COM port, the program will run in demo mode.  You will be able to see
  50. the database but none of the radio commands will operate.  The program uses
  51. 1200 baud for the 525 and 4800 baud for the 535 to communicate with the radio.
  52. (To determine the baud setting on the radio, hold down the "MEMO" key and hit
  53. the "8" key on the Radio keypad.  The radio should display "1200" on the
  54. frequency readout.  If it shows "300", press "MEMO" "8" again.
  55.  
  56. Note:  The time offset from GMT is also contained in CONFIG.DAT.  Delete
  57.        CONFIG>DAT if you are not on Central Standard Time.  NRD will prompt you
  58.        for the COM port, etc.  and rebuild this file.
  59.  
  60. Note:  When you run the program after deleting CONFIG.DAT, you will be asked
  61.        if you have a KIWA MAP Unit.  If you don't have one, simply say no.
  62.        Saying "yes" will enable a "K" for "KIWA" command described later. (This
  63.        feature is only available with the NRD525.
  64.  
  65. Note:  NRD assumes you have a color monitor.  To use with a monochrome display,
  66.        delete the file @MONITOR.DAT.
  67.  
  68.  
  69. RUNNING NRD:  Type:  NRD and hit enter.
  70.  
  71.  
  72. COMMANDS:
  73.  
  74. These will be described in two sections:  CONTROLLING THE RADIO and DATABASE
  75. COMMANDS.
  76.  
  77.  
  78. CONTROLLING THE RADIO:
  79.  
  80. This program allows you to control the radio either manually or with the
  81. computer keyboard.  To do this, mostly the radio is kept "unlocked" by the
  82. program.  This philosophy means that when you change the radio, the program
  83. does not know about it and the receiver display will not automatically reflect
  84. changes.  (Note:  for the 535, this is not true, The 535 allows the program's
  85. view of the receiver status to be continuously updated without locking out the
  86. receiver controls.) However, all radio and database commands that involve
  87. knowing the status of the radio will automatically check the contents of the
  88. radio before proceeding.  For example, the "+" key described below that
  89. increments the radio's frequency by 5 khz will check the actual radio frequency
  90. before proceeding to increment it.  If you wish to update the radio status
  91. display at any time, hit the SPACE BAR.  Changes since the last update are
  92. always highlighted in RED.
  93.  
  94.  
  95. CONTROLLING THE RADIO COMMANDS:
  96.  
  97.   "+" : increments the frequency by 5khz.  If the mode is USB or LSB, this is
  98.     first done off a khz to assist in hearing weak station heterodynes.
  99.  
  100.     Note: if the database is sorted by frequency, the highlighted database
  101.           entry will automatically follow the frequency.
  102.  
  103.   "-" : decrements the frequency by 5khz.  If the mode is USB or LSB, this is
  104.     first done off a khz to assist in hearing weak station heterodynes.
  105.  
  106.     Note: if the database is sorted by frequency, the highlighted database
  107.           entry will automatically follow the frequency.
  108.  
  109.   "<" : decrements the receiver "mode".  eg LSB to USB.  "," works as well so
  110.     no shifting is needed.
  111.  
  112.   ">" : increments the receiver "mode".  eg USB to LSB.  "." works as well so
  113.     no shifting is needed.
  114.  
  115.   "[" : decrements the bandwidth.
  116.  
  117.   "]" : increments the bandwidth.
  118.  
  119.   " " : (space) refresh the receiver display.  Useful if radio has been changed
  120.     manually. (Not necessary for the 535 except for channel changes).
  121.  
  122.   "K" : for "Kiwa" - If in LSB or USB, puts the radio in AM with WIDE bandwidth
  123.     (and detunes by 2 khz).  If in AM, puts radio on nearest 5 khz center
  124.     and puts in LSB or USB (depending on the offset) and sets the bandwidth
  125.     to INTER.  Used to toggle high fidelity listening for use with KIWA MAP
  126.     unit.  Unless you answer "yes" to has KIWA MAP unit in building
  127.     CONFIG.DAT file, this command will not appear or work.    This feature is
  128.     not supported for the NRD535.
  129.  
  130.  
  131.   "R": for "s-meteR" - applies only for NRD535 users.  Toggles mode of
  132.        displaying the S-Meter reading in the receiver status.  Default is OFF.
  133.        This mode causes an annoying synthesizer (I assume) induced noise in
  134.        USB/LSB/CW/RTTY modes hence the option.
  135.  
  136.  
  137.  GRAPHICS COMMANDS:
  138.  
  139.  For users with NRD535s and with graphics hardware, there is a G(raphics
  140.  option.  Most graphics hardware should work.  Testing included VGA, EGA,
  141.  and CGA.  The following adapters should work but were NOT tested:  MCGA,
  142.  EGA64, EGAMONO, HERCMONO, and PC3270.    This code requires reading the radio's
  143.  S-Meter which is not possible on the NRD525 and hence does not show up on the
  144.  menu for the 525.  From the 535 command menu, select:
  145.  
  146.   "G" : for "Graphics.  Selecting the Graphics option produces the following
  147.     command menu:
  148.  
  149.      GRAPHICS:    C(lear, T(ime plot, S(pectral plot, Q(uit
  150.  
  151.        These commands are as follow:
  152.  
  153.      "C" for "Clear"
  154.  
  155.          Clears the graphics screen.
  156.  
  157.      "T" for "Time plot"
  158.  
  159.          Produces a time domain plot of the S-Meter output.  This is useful
  160.          for watching signals fade in and out over time.  Units are in dB
  161.          and calibrated to the NRD535 S-Meter.  Hitting the SPACE BAR will
  162.          stop the plotting and return control to the Graphics menu.
  163.  
  164.      "S" for "Spectral plot"
  165.  
  166.          Produces a frequency domain plot of the S-Meter output over a user
  167.          specified frequency range.  You will be prompted to enter the
  168.          start and stop frequencies.  The program defaults to -/+ 5khz off
  169.          the current frequency if you wish to hit enter without typing a
  170.          number for the start and stop frequencies.  The sampling is done
  171.          in CW mode using the bandwidth control (BWC) set to 500Hz. The
  172.          following command prompt is displayed when doing Spectral plots:
  173.  
  174.            COMMANDS: A(verage, C(lear, Quit
  175.  
  176.          Hitting "A" for "Average" will plot the average value for each
  177.          frequency.  Typically, after sampling a while, this is useful
  178.          to see signals that might otherwise be in the mud and to filter
  179.          out lighting and modulation effects.  A running average is
  180.          maintained that wieghts each sample equally.  "C" for "Clear"
  181.          clears the screen but does not stop the sampling or reset the
  182.          statistics used in Averaging.  "Q" for "Quit" returns to the
  183.          graphics menu.
  184.  
  185.          The radio will be returned to the settings it had prior to using
  186.          this command when either the plot finishes or when you hit a key
  187.          to stop it.
  188.  
  189.      "Q" for "Quit"
  190.  
  191.          Returns control to the main menu and leaves graphics mode.
  192.  
  193.  
  194. DATABASE COMMANDS:
  195.  
  196. This program allows for a set of up to 20 separate databases.  These are
  197. selected with the Journal command (described later).  One database is displayed
  198. at a time.  The status line at the bottom of the display will show the "active"
  199. log.  When you switch logs, the program remembers the previous log which is
  200. shown as the "inactive" log.  Commands described below allow hot keying between
  201. these logs and copying data from the inactive log.  A highlighted line shows
  202. the position in the database.  Cursor control keys move about in the database
  203. as do "pageup" and "pagedn" keys.  "Control-pageup" and "control-pagedn" keys
  204. page by 10 pages at a time.  The "home" key takes you to the top of the
  205. database.  Likewise the "end" takes you to the end.  The following commands
  206. affect the "active" log.
  207.  
  208.  
  209. "L" for "Log":
  210.  
  211.      "Logs" a new entry in the "active" database.  Time stamp and radio contents
  212.       are provided automatically.  User is placed in "Edit mode" at the call
  213.       sign location.  Enter the call sign and hit the "tab" key to enter the
  214.       location.  Hit the "tab" key again to enter a comment.
  215.  
  216.       Note: This comment field is contained on a different "page".  (See the
  217.         "Page" command).
  218.  
  219.  
  220. "C" for "Confirm":
  221.  
  222.      "Confirms" and existing log entry.  Date is updated to current date.  If
  223.      time is outside "Start" and "End" time fields, these are changed.  The
  224.      contents of the radio are polled and this data is updated.  (Particularly
  225.      valuable for drifting stations).
  226.  
  227.      Note: The time algorithms are rather simple minded.  Mostly they do the
  228.        right thing.
  229.  
  230.  
  231. "T" for "Tune":
  232.  
  233.      "Tunes" the radio from the highlighted database entry.
  234.  
  235.  
  236. "*"  This command finds the first database entry with the same (or higher)
  237.      frequency that the radio is set to.  Sort of the opposite of the "Tune"
  238.      command.
  239.  
  240.  
  241. "E" for "Edit":
  242.  
  243.      Because the program uses commands, you cannot just type over database
  244.      entries without using this mode.  The edit field will be highlighted and
  245.      the entry can be changed.    "Home" takes you to the beginning of the field;
  246.      "End" takes you to the end.  The "insert" and "delete" keys work.  When
  247.      finished, hit "enter" or use a "tab" key to bounce to the next field.
  248.  
  249.  
  250.  
  251. "P" for "Page":
  252.  
  253.      Each database entry is displayed horizontally over three "pages".  Hitting
  254.      the "P" key toggles between these three.  Cursor and Tab keys can be used
  255.      as well.
  256.  
  257.  
  258. "D" for "Delete":
  259.  
  260.      This removes an entry from the database.
  261.  
  262.  
  263. "N" for "uNdelete":
  264.  
  265.      Reverses accidental deletions.  Since subsequent "loggings" use up deleted
  266.      entries, this is best used immediately after an accidental delete.
  267.  
  268.  
  269. "S" for "Sort":
  270.  
  271.      The database can be sorted in ascending order with any two fields.  For
  272.      example, by frequency and by time.  In this example, the database will
  273.      be sorted by frequency with all stations with a common frequency listed
  274.      in time order.
  275.  
  276.      Note:  For automatic searching on the receiver frequency (see "*", "+",
  277.         and "-") to work properly, the database should be in frequency
  278.         order.
  279.  
  280.      Note:  This only sorts the active log.  Different logs can be sorted in
  281.         different ways.
  282.  
  283.  
  284. "M" for "Mark":
  285.  
  286.      Marks the current highlighted line.  Displayed in YELLOW.    Moving the
  287.      cursor to another line and pressing "M" again marks a range of lines.
  288.      See the Journal command for usage.
  289.  
  290.  
  291. "U" for "Unmark":
  292.  
  293.      Cancels any marked lines.
  294.  
  295.  
  296. "H" for "Help":  Type for help on using this program.
  297.  
  298. "/":  Selects alternate command prompt.  All commands are always active.
  299.  
  300.  
  301.  
  302. "A" for "Alternate":
  303.  
  304.      This command allows hot keying between the active and inactive database.
  305.      This will have no effect if there is no inactive database.  (The active
  306.      and inactive databases are displayed on the status line at the bottom
  307.      of the screen).  This is particularly useful for switching between
  308.      a station log and a target log.  The "A" key was selected for its
  309.      keyboard position.
  310.  
  311.  
  312. "W" for "Write":
  313.  
  314.      This command will "write" the log data from the highlighted line for the
  315.      "inactive" (not seen) log to the highlighted area for the active log.
  316.      To illustrate how the "A" and "W" commands might be used, consider this
  317.      example:  It is dawn and you are using your "INDO TARGET" log to search
  318.      for new stations.    You find one!  You use the "Confirm" command to update
  319.      the time and date in the target log and use the Journal command to bring
  320.      up the log you use to keep confirmed catches.  To save time, you don't
  321.      bother to find the "proper" place in this log for this station (you can
  322.      sort it later).  You hit the "W" for "Write" key and the entry appears.
  323.      Now hit the "A" for "Alternate" key and you are back in "INDO TARGET".
  324.      Find another one?    Confirm it and just hit "A" for "Alternate" again to
  325.      toggle back to the main log and use "W" again.
  326.  
  327.      Note: This creates a new entry and does not overwrite data.
  328.  
  329.      Note: The Journal "Read", "Write" and "Move" commands may also be used.
  330.  
  331.  
  332.  
  333. "J" for "J(ournal"
  334.  
  335.      This command will display the various log choices and its own command
  336.      menu:
  337.  
  338.   Journal: S(elect, C(reate, D(el, I(mport, R(ead, W(rite, M(ove, P(rint, Q(uit
  339.  
  340.      These commands will now be described:
  341.  
  342.      "S" for "Select":
  343.  
  344.      Select a new active database.    You will be prompted to enter the
  345.      NAME of the database you which to view.  (Note: Enter the name for the
  346.      database, NOT the number).   This new database becomes the active
  347.      database and the last one becomes the inactive one.
  348.  
  349.  
  350.      "C" for "Create":
  351.  
  352.      Creates a new, empty database.
  353.  
  354.  
  355.      "D" for "Delete":
  356.  
  357.      Deletes a database.
  358.  
  359.  
  360.      "I" for "Import":
  361.  
  362.      Imports data from another database:  Currently, only one supported is
  363.      Tom Sundstrom's English language database.  To accomplish this, copy
  364.      the file SWSKED.DBF into the NRD subdirectory and select "J" for
  365.      "Journal" then "I" for "Import".  This file is NOT included and must
  366.      be purchased from TRS Consultants.  To receive more information on
  367.      Tom's  program, send a #10 SASE to Thomas R. Sundstrom PO Box 2275,
  368.      Vincentown, NJ 08088-2275, USA or FAX (609) 859-3226 or call the
  369.      Pinelands BBS on (609) 859-1910. .  Tom offers an update service.  MY
  370.      PROGRAM ASSUMES THAT YOU HAVE COMPLETED THE UPDATE PROCEDURE HIS
  371.      DOCUMENTATION CALLS FOR PRIOR TO USE.
  372.  
  373.      "W" for "Write":
  374.  
  375.      Writes marked lines to database you select.
  376.  
  377.  
  378.      "M" for "Move":
  379.  
  380.      Like "Write" but deletes the marked lines from the source log after
  381.      copying them to the new log.
  382.  
  383.  
  384.      "P" for "Print":
  385.  
  386.      Prints a copy of the database in compressed print to LPT1:
  387.  
  388.  
  389.  
  390.  
  391.  
  392. ABOUT THE DATABASE SAMPLE:
  393.  
  394. I include my personal log (called, somewhat unimaginatively "LOG") as a sample.
  395. In practice, I use this to record stations as I hear (or rehear) them and use
  396. other logs for specific target areas.  You can very quickly tune through a list
  397. of INDOs at dawn by creating a special target file, for example and it's easy
  398. to copy entries from one database to another.  You will probably want to start
  399. over with your own log.  If you do some programming and have a computer log in
  400. some other format, it's not hard to map over using the included source code.
  401. (My original database was Lotus 1-2-3).
  402.  
  403.  
  404. MICROSOFT WINDOWS:
  405.  
  406. NRD can be used with Microsoft Windows.  I use NRD in one window and the
  407. wonderful GEOCLOCK program in another.    (See NASWA Listener's Library May 1990
  408. for John Bryant's review on GEOCLOCK -- get this program and register it in
  409. order to get all the extra maps!!!) The file NRD.ICO is an icon for use with
  410. windows.
  411.  
  412.  
  413. PERFORMANCE HINTS:
  414.  
  415. Using Disk Cache programs really help.    As you delete and add entries over
  416. time, the database will become fragmented and you may notice some degradation.
  417. To remedy, first back up the data files, then mark all entries (put the cursor
  418. on the top line and hit "M" for "Mark", go to the last entry and hit "M again
  419. -- all lines should be Yellow now if you have a color monitor).  Next hit "J"
  420. for "Journal", Create a new database ("C" for "Create), and select "W" for
  421. "Write".  When the program asks for "Log to write to:", enter the name of the
  422. database you just created.  This process copies the old log to the new one and
  423. eliminates any fragmentation.
  424.  
  425. OTHER RADIOS:
  426.  
  427. All routines for the receiver control are isolated in the NRDIO.PAS file and
  428. the intention was to minimize receiver dependent code to simplify the task of
  429. porting this to other receivers.
  430.  
  431.  
  432. FEEDBACK PLEASE:
  433.  
  434. I'm interested in feedback on the program and ideas for how to make it better.
  435. If you make changes to the program, please comment your changes well and upload
  436. with a name that distinguishes it from NRD so we don't get confused.  I can be
  437. contacted at:
  438.  
  439.             Tom Whiteside (512) 258-5924
  440.             11505 Oak View
  441.             Austin, TX 78759
  442.  
  443.  
  444. I will also be on the Pineland's BBS (609) 859-1910 from time to time.  Hope
  445. you enjoy NRD!
  446.  
  447.  
  448. Fixes:
  449.  
  450.     Rev 2.1  12-02-90  Oops, original upload had the offset to GMT hardwired
  451.                for Central Time Zone.  Offset is not stored in the
  452.                Config.dat file.  Fixed a minor bug where homing
  453.                left the cursor at the bottom of the page rather than
  454.                the top.
  455.  
  456.     Rev 2.2 12-25-90   Added feature to allow com port 0 --- allows demoing the
  457.                program if you don't have an NRD525 or a working serial
  458.                link to it.
  459.  
  460.     Rev 2.3 12-26-90   Improved error recovery if receiver is off
  461.  
  462.     Rev 2.4 03-01-91   Embarrasment preventing use with monochrome monitors
  463.                fixed.
  464.  
  465.     Rev 2.5 03-23-91   Added Import command to Journal.  Allows subscribers
  466.                to "import" Tom Sundstrom's English Language data
  467.                to an NRD journal entitled: "SWSKED"
  468.  
  469.     Rev 2.6 03-30-91   Added concept of "Active" and "Inactive" logs and the
  470.                ability to write between them.  "*" command added.
  471.                Fixed potential hang condition in comreadln (com port
  472.                read line).  Deleted non-useful and dangerous Read
  473.                command from Journal.
  474.  
  475.     Rev 3.0 04-26-91   modified for 535
  476.  
  477.     Rev 3.1 04-27-91   Fixed program hang if user incorrectly enters the db
  478.                name in "Journal".  Added continuous update of receiver
  479.                status display for the 535
  480.  
  481.     Rev 3.2 05-12-91   Added S-meter to 535; changed mode order to AM -> ECSS_U;
  482.                Added graphics command for 535; misc bug fixes for 535;
  483.  
  484.     Rev 3.3 05-19-91   Enhancements to graphics - commands for spectral and
  485.                time displays.  Performance enhancement to spectral plot
  486.